package loops;

public class loopTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		//Build me some list of words
		
		String sArray[] = new String[] {"hej","med","dig"};

		System.out.println("For loop");
		
		for(int i = 0;i<sArray.length;i++){
			
			System.out.println(sArray[i]);
		}
		
		System.out.println("Advance For-loop");
		
		for(String s:sArray)
		{
			System.out.println(s);			
		}
			
		System.out.println("While loop");
		int j=0;
		while(j<sArray.length)
		{
			System.out.println(sArray[j]);
			j++;
		}
		

	}

}
